home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / librarian.529 < prev    next >
Text File  |  1992-02-06  |  2KB  |  62 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fswiss Helvetica;\f3\fmodern Courier;}
  2. \paperw11440
  3. \paperh9000
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 Librarian indexing filters\
  8.  
  9. \f1\fs24 \
  10.  
  11. \f0\fs28 Q:  Why doesn't Librarian index some files?\
  12. \
  13. A:  The best way to find out what is wrong with a file is to do what the indexing machinery does by hand. \
  14. \
  15. Before indexing a file, Librarian determines its filetype.  Files of certain types, binary for example, are not indexed.  Check the filetype to make sure it is reasonable using 
  16. \i fileType
  17. \f3\i0\fs24 :\
  18. \
  19.     % /usr/lib/indexing/fileType <filename>\
  20.     
  21. \f0\fs28 \
  22. The filetype should be something like 
  23. \i ascii
  24. \i0 , 
  25. \i english
  26. \i0 , 
  27. \i rtf
  28. \i0 , 
  29. \i wn
  30. \i0 , or 
  31. \i frame
  32. \i0 .  If it's not reasonable, then you probably should edit the file to remove any non-ascii characters.\
  33. \
  34. If the filetype is reasonable, you can run the keyword extraction program on that file by hand to see where it breaks.  The keyword extraction program for each filetype is found as 
  35. \i /usr/lib/indexing/<type>-keys
  36. \i0 .   For an 
  37. \i rtf
  38. \i0  file, you would do this:\
  39. \
  40.  
  41. \f3\fs24     % /usr/lib/indexing/rtf-keys <filename>\
  42.     
  43. \f0\fs28 \
  44. If there is no keyword filter for a filetype, use the default filter program found in 
  45. \i /usr/bin/pword
  46. \i0 .\
  47. \
  48. If you want more information about the internals of the indexing machinery, please read
  49. \pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\fc0   
  50. \i /NextLibrary/Documentation/NextDev/Notes/IndexingPaper.rtf
  51. \i0  and 
  52. \i /NextLibrary/Documentation/NextDev/ReleaseNotes/Indexing.rtf
  53. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0 .
  54. \i0 \
  55. \
  56. QA529\
  57. \
  58. Valid for 1.0 \
  59. Valid for 2.0\
  60. \
  61.  
  62.